<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php

class ApiErrorLogListForm extends CFormModel implements IMiniyunGridConfig
{

	public function rules()
	{
		return array(
		);
	}

	public function init(){
		parent::init();
	}
	
	public function getFormFilters(){
		return array(
             'isAdmin'=>array(
              "condition"=>"select user_id from ".Yii::app()->params['tablePrefix']."user_metas where meta_key='is_admin' and meta_value='1'"
              ),
              'disabled'=>array(
              "condition"=>"select id from ".Yii::app()->params['tablePrefix']."users where user_status=0"
              ),
              );
	}

	public function getSearchKey(){
			
	}
	
	public function getDataProvider()
	{
		return new ApiErrorLogListDataProvider($this);
	}
	 
}
